package com.test.DDT.util;

import com.alibaba.excel.EasyExcel;
import com.test.DDT.pojo.CaseData;

import java.util.List;

public class ExcelUtil {
    public static List<CaseData> readExcel(String path, String sheetName) {
        List<CaseData> data = EasyExcel.read(path).head(CaseData.class).
                sheet(sheetName).doReadSync();
        return data;
    }
}
